package alogrithm.structure;

public class LinkedNode {
	private Object value;
	private LinkedNode post;
	
	public LinkedNode(){}
	public LinkedNode(Object _value,LinkedNode _post)
	{
		value=_value;
		post=_post;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public LinkedNode getPost() {
		return post;
	}

	public void setPost(LinkedNode post) {
		this.post = post;
	}

	public static void printList(LinkedNode node)
	{
		while(node!=null)
		{
			System.out.print(node.getValue()+"\t");
			node=node.getPost();
		}
		System.out.println();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}


}
